<template>
  <div id="app">
    <header>
      <router-view name="header" />
    </header>

    <main>
      <router-view />
    </main>

    <footer>
      <router-view name="footer" />
    </footer>

  </div>
</template>
<script>

import request from './utils/request'
export default {
  name: 'app',
  created() {
    request({
      url: 'http://rap2api.taobao.org/app/mock/300067/api/news',
    })
      .then(data => console.log('rap2', data))
  },
}
</script>

<style lang="less">
@font-face {
  font-family: "iconfont"; /* Project id 3273439 */
  src: url("//at.alicdn.com/t/font_3273439_0qv7k04cysp.woff2?t=1648524917642")
      format("woff2"),
    url("//at.alicdn.com/t/font_3273439_0qv7k04cysp.woff?t=1648524917642")
      format("woff"),
    url("//at.alicdn.com/t/font_3273439_0qv7k04cysp.ttf?t=1648524917642")
      format("truetype");
}
@font-face {
  font-family: 'iconfont';  /* Project id 3290911 */
  src: url('https://at.alicdn.com/t/font_3290911_8jufb4hx1yp.woff2?t=1648641787556') format('woff2'),
       url('https://at.alicdn.com/t/font_3290911_8jufb4hx1yp.woff?t=1648641787556') format('woff'),
       url('https://at.alicdn.com/t/font_3290911_8jufb4hx1yp.ttf?t=1648641787556') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 30px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.3px;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  height: 100%;
}
#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  // header{
  //   height: 60px;
  // }
  main {
    flex: 1;
    overflow-x: hidden;
  }
}
main {
  flex: 1;
  overflow-x: hidden;
}
</style>
